package ch.zbw.iCoach.remo;


/**
 * This class is used for store all information about an user. There are the values.
 * Is a very simple class
 * 
 * 1).user name
 * 2).last name
 * 3).fser name
 *  
 * 
 * @author Remo Reimann
 * @version Version 1 (release 18.03.2013)
 */
public class User{
	
	//Data field for storing this information
	private String lastname;
	private String firstname;
	private String username;

	/**
	 * This simple constructor takes three values (user name, last name, first name)
	 * 
	 * @param lastname		String which contains the last name
	 * @param firstname		String which contains the fist name
	 * @param username		String which contains the user name
	 */
	public User (String lastname, String firstname, String username){
		this.lastname = lastname;
		this.firstname = firstname;
		this.username = username;
	}

	/**
	 * getter method for getting the last name 
	 * 
	 * @return		returns a String which contains the last name
	 */
	public String getLastname() {
		return lastname;
	}

	/**
	 * getter method for getting the last name 
	 * 
	 * @return		returns a String which contains the first name
	 */
	public String getFirstname() {
		return firstname;
	}

	/**
	 * getter method for getting the last name 
	 * 
	 * @return		returns a String which contains the user name
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * setter method for setting the last name 
	 * 
	 * @param		a String value which contains the last name
	 */
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	/**
	 * setter method for setting the last name 
	 * 
	 * @param		a String value which contains the first name
	 */
	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	/**
	 * setter method for setting the last name 
	 * 
	 * @param		a String value which contains the user name
	 */
	public void setUsername(String username) {
		this.username = username;
	}
		
}
	


